particlesJS('particles-js', {
    "particles": {
        "number": {
            "value": 120,  // 增加粒子数量
            "density": {
                "enable": true,
                "value_area": 600  // 提高粒子密度
            }
        },
        "color": {
            "value": ["#3498db", "#2ecc71", "#e74c3c"]  // 多种颜色粒子
        },
        "shape": {
            "type": ["circle", "triangle", "star"],  // 多种形状
            "stroke": {
                "width": 0,
                "color": "#000000"
            }
        },
        "opacity": {
            "value": 0.7,  // 提高不透明度
            "random": true,
            "anim": {
                "enable": true,
                "speed": 1.5,
                "opacity_min": 0.3,
                "sync": false
            }
        },
        "size": {
            "value": 4,  // 增大粒子尺寸
            "random": true,
            "anim": {
                "enable": true,
                "speed": 3,
                "size_min": 1,
                "sync": false
            }
        },
        "line_linked": {
            "enable": true,
            "distance": 120,  // 缩短连接线距离
            "color": "#3498db",
            "opacity": 0.4,  // 提高连接线透明度
            "width": 1.5  // 加粗连接线
        },
        "move": {
            "enable": true,
            "speed": 2.5,  // 加快移动速度
            "direction": "none",
            "random": true,
            "straight": false,
            "out_mode": "bounce",  // 改为反弹效果
            "bounce": true,
            "attract": {
                "enable": true,
                "rotateX": 600,
                "rotateY": 1200
            }
        }
    },
    "interactivity": {
        "detect_on": "window",
        "events": {
            "onhover": {
                "enable": true,
                "mode": "repulse"  // 悬停时排斥粒子
            },
            "onclick": {
                "enable": true,
                "mode": "bubble"  // 点击时产生气泡效果
            },
            "resize": true
        },
        "modes": {
            "repulse": {
                "distance": 100,
                "duration": 0.4
            },
            "bubble": {
                "distance": 200,
                "size": 15,
                "duration": 2,
                "opacity": 0.8,
                "speed": 3
            }
        }
    },
    "retina_detect": true
});